using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class BornTrigger : MonoBehaviour
{
    public GameUI gameUI;

    private int num = 0;

    private void Start()
    {
        
    }

    private void OnTriggerEnter2D(Collider2D other)
    {
        if(other.tag == "Player")
        {
            num++;
        }
        if(num == 1)
        {
            gameUI.ShowStart();
            Destroy(gameObject);
        }
    }
}
